package com.itheima.springbootwebtlias.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Slf4j
@Component
@Aspect
@Order(2)
public class AspectOrder1 {

    @Before("com.itheima.springbootwebtlias.aspect.AspectType.kk()")
    public void before() {
        System.out.println("通知：AspectOrder1.before");
    }

    @After("com.itheima.springbootwebtlias.aspect.AspectType.kk()")
    public void after() {
        System.out.println("通知：AspectOrder1.after");
    }
}